<?php
namespace app\home\controller;
use think\Controller;
class Index extends Controller
{
    public function index(){
        return $this->fetch();
    }

   public function search(){
       $number = $this->request->param('number');
       $order_id = Db('order')->where('number',$number)->value('id');
       $datalist = Db('order_search')->order('id desc')->where('order_id',$order_id)->select();
       $this->assign('datalist',$datalist);
       return $this->fetch();
   }
}
